<template>
  <div class="app-container home">
    <iframe id="myFrame" :height="iframeHeight ? iframeHeight : 650"  width="100%"
      frameborder="0"
      allowfullscreen="1" :src="previewUrl"></iframe>
  
  </div>
</template>

<script>
export default {
  name: "edit",
  data() {
    return {
      iframeHeight: 650
    };
  },
  computed: {
    previewUrl() {
      console.log(window.location.origin);
      const url = `${window.location.origin}/mocrm-manage-strategy-h5/#/editor/${this.$route.query.posterId}`
      return url;
    }
  },
  methods: {
  },
  mounted() {
    this.iframeHeight = document.documentElement.clientHeight - 120;
  },
};
</script>

<style scoped lang="scss">

</style>

